<?php
require("conn.php");
$sql="SELECT * FROM chudegame";
$bang=mysql_query($sql);
?>
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>

<table width="356" border="0" cellpadding="1" cellspacing="1" style="border:outset;border-width:+4;border-color:#FFFFCC">
  <tr style="background:url(../hinh/1.jpg)">
    <td width="24"><div align="left"><strong>Stt</strong></div></td>
    <td width="214"><div align="left"><strong>Chu &#273;&#7873; game </strong></div></td>
    <td width="25"><div align="left"><strong>S&#7919;a</strong></div></td>
    <td width="26"><div align="left"><strong>X&#243;a</strong></div></td>
    <td width="33"><div align="left"><strong>Xem </strong></div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center" style="border:outset;border-width:+5;border-color:#C1C1C1"><strong><a onclick="">Th&#234;m</a> | Xem t&#7845;t c&#7843;</strong></div></td>
  </tr>
   <?php
   $tt=0;
  while($row=mysql_fetch_array($bang))
  {
  $tt++;
  ?>
  <tr bgcolor="#FFCCFF">
    <td><?php echo $tt; ?></td>
    <td><div align="left"><?php echo $row['ten'];?></div></td>
    <td><img name="" src="../hinh/b_edit[1].png" width="24" height="16" alt="" onclick="suachudegame('<?php echo $row["ma"];?>')"></td>
    <td><img name="" src="../hinh/b_drop[1].png" width="16" height="16" alt="" onclick="xoachudegame('<?php echo $row["ma"];?>')"></td>
    <td><span class="style1">=&gt;</span></td>
  </tr>
  <?php
  if($row=mysql_fetch_array($bang))
  {
  $tt++;
  ?>
  <tr bgcolor="#CCFFFF">
    <td><?php echo $tt; ?></td>
    <td><div align="left"><?php echo $row['ten'];?></div></td>
    <td bgcolor="#FFCCFF"><img name="" src="../hinh/b_edit[1].png" width="24" height="16" alt="" onclick="suachudegame('<?php echo $row["ma"];?>')"></td>
    <td bgcolor="#FFCCFF"><img name="" src="../hinh/b_drop[1].png" width="16" height="16" alt="" onclick="xoachudegame('<?php echo $row["ma"];?>')"></td>
    <td bgcolor="#FFCCFF"><span class="style1">=&gt;</span></td>
  </tr>
  <?php
  }
  }
  ?>
</table>

